#pragma once
#include "Vector3.h"
#include "MyMatrix.h"

class Triangle
{
public:
	// points to represnt the triangle
	Vector3<float> Points[3];

	// normal of the triangle
	Vector3<float> Normal;

	Triangle(Vector3<float> p1, Vector3<float> p2, Vector3<float> p3);
	Triangle(Vector3<float> pts[3]);
	~Triangle(void);

	void Draw();

	void DrawNormal();

	Triangle Transformed(MyMatrix mix);

	// get the normal of the triange if the transform would cause a change
	Vector3<float> TranfomredNormal(MyMatrix mix);


};

